Add methods for profile and edit profile views, some other tweaks

I can't tell since I don't know what the action variable is for.