Removed old code in profilecontroller