updating profile and modify templates