fixed up profile view/ctrl and added some error handling