Add functionality to back button on profile template.