Fix alert treshold bug in check edit form

Closes #92
Merge branch 'alert-threshold-for-checkevents'