add profile method in controller