fixed crash that happens when deleting a duplicate routine. added logic to deal with adding duplicate routines to daily view controller