switched to ajax model, added validation with bootstrap