encapsulating backbutton functions