added cancel button with routing back to page along with making needed fixes to p_editprofile() method