clean the controller, remove create, edit, delete logic all operation should be through REST API over JSON