     userOptions = getUserFormValues template
     # Todo: add exception handling for these 2 calls
     Meteor.call 'updateUser', userOptions, (err) ->
-      if err
-        Template.userMessages.showMessage
-          type: 'error',
-          title: 'Error. ',
-          message: 'Your profile details were not saved. Reason: ' + err.reason
-      else
-        Template.userMessages.showMessage
-          type: 'info',
-          title: 'Success!',
-          message: 'Your profile details were saved successfully.'
+      showResultOfProfileUpdate err
     if Volunteers.findOne Meteor.userId()
       volunteerOptions = getVolunteerFormValues template
       Meteor.call 'updateVolunteer', volunteerOptions, (err) ->
-        if err
-          Template.userMessages.showMessage
-            type: 'error',
-            title: 'Error.',
-            message: 'Your profile details were not saved. Reason: '+err.reason
-        else
-          Template.userMessages.showMessage
-            type: 'info',
-            title: 'Success!',
-            message: 'Your profile details were saved successfully.'
+        showResultOfProfileUpdate err
     Router.go 'profileDetails'
 
   'click #pickPhoto': (evnt, template) ->

    suburb: template.find('#suburb').value
    city: template.find('#city').value
    postalCode: template.find('#postalCode').value




    email: template.find('#email').value
    photoFilename: template.find('#photoFilename').value
    gender: template.find('input:radio[name=gender]:checked').value
    isNew: Meteor.user().profile.isNew
    admin: Meteor.user().profile.admin

getVolunteerFormValues = (template) ->
  return values =
