added json view and deleted accidentally added echo in model insert method, fixed bad namespace in the command resolver