Move more view logic to helper / drying ajax stuff
Still ugly.