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

Uhm this is baaad though I think. :/ Where do you need it? in JS?