Added on up button press for fragments