add a before filter to pre-treat the params when create and update schedules