can name routines. fixed crash when deleting routine from daily view. cleaned up some code