creating usercontroller and view