Added functionality for the action bar in the RecordActivity