Add profile and edit profile views, some little tweaks

I would suggest to add this function to a service called HashService.