new entry crashes when checking for alarm, fix to check alarm only in edit mode