add gon, assignments api, ajax.