added views

and made changes to all get and post methods