 					@saveSelection 'm'
 					@showToolpadOverSelection 'm'
 					@restoreSelection 'm'
+		$('#toolpad').delegate 'li:first-child', 'click', (e)->
+			$(@).addClass 'toggled'
+		$('#toolpad').delegate '.cancel', 'click', (e)->
+			$(@).removeClass 'toggled'
 
 	update: ->
 		self = @

		top = Math.min startEl.offset().top, endEl.offset().top
		left = ( startEl.offset().left + endEl.offset().left ) / 2
		$('#toolpad').css 'top', top - 35
		$('#toolpad').css 'left', left - 30
	hideToolpad: ->
		$('#toolpad').addClass 'hidden'
		

		$('body').delegate '#tooltip', 'mouseleave', (e)->
			self.hideTooltip()

		# toolpad
		$('body').delegate '#editor', 'mouseup', (e)=>
			sel = @selection()
