convert to trails app, send messages over ajax