Update createSchedule.php

changed to integrate with event