js callback for create action of allotments