         app: @model.attributes
 
     events:
-        "click .application-inner" : "onAppClicked"
-        'click .use-widget'        : 'onUseWidgetClicked'
+        "mouseup .application-inner" : "onAppClicked"
+        'click .use-widget'          : 'onUseWidgetClicked'
 
     ### Constructor ####
 


    ### Functions ###

    launchApp: =>
        window.app.routers.main.navigate "apps/#{@model.id}/", true

                msg += " Error was : #{errormsg}" if errormsg
                alert msg
            when 'installed'
                @launchApp(event)
            when 'installing'
                alert t 'this app is being installed. Wait a little'
            when 'stopped'
                @model.start success: => @launchApp(event)

    setUseWidget: (widget = true) =>
        widgetUrl = @model.get 'widget'
        if widget
            @$('.use-widget').text t 'use icon'
            @icon.detach()
            @stateLabel.detach()
            @title.detach()
            @$('.application-inner').html WidgetTemplate url: widgetUrl
        else
            @$('.use-widget').text t 'use widget'
            @$('.application-inner').empty()
            @$('.application-inner').append @icon
            @$('.application-inner').append @title
