fix bugged Nonprofit can't update profile

This fixed the bugs in view and rearrange the helper function for easy documenting.