Fix back button behaviour to be consistent with native apps