added backbutton handler for app ref #217