created route for page/schedule
defined schedule function for page controller