updated profiles controller and model