       backgroundColor: "transparent"
     }, options)
     
+    @bg = ""
+    @bgPressed = ""
+    
     if options.type == "back"
       @view = @createBackButton(options)
     else
       @view = @createButton(options)
     
   createBackButton: (settings) =>
-    bg = "/Common/Framework/Images/iOS/TitleBar/Buttons/back.png"
-    bgPressed = "/Common/Framework/Images/iOS/TitleBar/Buttons/backPressed.png"
+    @bg = "/Common/Framework/Images/iOS/TitleBar/Buttons/back.png"
+    @bgPressed = "/Common/Framework/Images/iOS/TitleBar/Buttons/backPressed.png"
 
-    button = Ti.UI.createLabel({
+    @button = Ti.UI.createLabel({
       backgroundColor: settings.backgroundColor
-      backgroundImage: bg
+      backgroundImage: @bg
       backgroundLeftCap: 15
       backgroundRightCap: 10
       height: 30

    })

    if settings.iconSettings?
      icon = Ti.UI.createImageView(settings.iconSettings)
      button.add(icon)

    if settings.text?
      @label = Ti.UI.createLabel({

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

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

  createButton: (settings) =>
    if settings.bg
      @bg = settings.bg
    else
      @bg = "/Common/Framework/Images/iOS/TitleBar/Buttons/button.png"

    if settings.bgPressed
      @bgPressed = settings.bgPressed
    else
      @bgPressed = "/Common/Framework/Images/iOS/TitleBar/Buttons/buttonPressed.png"

    @button = Ti.UI.createLabel({
      backgroundColor: settings.backgroundColor
      backgroundImage: @bg
      backgroundLeftCap: 10
      backgroundRightCap: 10
      height: 30
