update controller andd coffeejs to send back useful data