added user controller for user details page