added controller for profiles