moving ajax call to model, replacing trim helper with new format helper, fixing spacing and style issues, changing router.