Added onBackPressed eventHandler, created goBack function and refactored onClick EH for not double code