wroking on back button on the action bar