Implemented logic for profile; implemented basic view