updated profiles controller