Creating an action and view for profile details