rewritting profiles_controller
fix method in profiles_controller