how to set routines using a planner