adding edit and view user functionalities