Added profile view and updated controller