Refactored the creation of data obejcts to the handlers and at the same
time included the opening and closing to the methods inside the
handlers. This ensures that we do not have to worry about opening and
closing within activities. Also changed the layout in mood question.