Updates the profile template and passes the user object to it