Fixed backbutton and menubutton events