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

You can clearly see $action is correct because it works for "case". But doesn't work in query()