Created edit/view profile functionality