started mvc refactoring for client side
last commit before switching to refactor branch