refactored views to crud, phase one