scheduler code complete. remain styling.