profiles controller modified