Finalized views
Fixed CSRF bug and removed unnecessary code
Changed views to generic views