Refactored update and create views into class views
removed scratch file