finished scheduler frontend (fixed bugs too)