simpler launchComposer and move the draft handling to an external function
activity handler conversion
jshint fixes
fix issues when currentView is not defined yet