fixed profile edit feature to work