restructuring admit and queue html