   constructor:(options = {}) ->
     options = root._.extend({
       type: "flat"
+      onClick: () => Ti.API.info("button clicked")
     }, options)
     
     if options.type == "back"


    button = Ti.UI.createLabel({
      backgroundImage: bg
      backgroundLeftCap: 20
      backgroundRightCap: 10
      height: 30
      width: Ti.UI.SIZE

        width: Ti.UI.SIZE
        height: 28
      })
      button.add(@label)

    button.addEventListener("touchstart", () => button.backgroundImage = bgPressed)
    button.addEventListener("touchend", () => 
      settings.onClick()
      button.backgroundImage = bg
    )
    button

  createButton: (settings) =>
