Updated profile and view user controller code