moved payload formatting out of controller and into helper, yes I like it there, suck it