add profile controller and cleaning up