worked with profile page and controller

added some logic to profile controller, changes reflected in profile html