Fixing cancel button
Check that a schedule doesn't already exist before adding it