alerts: fix views and form

* Fixes list frequency in alert form.

* Fixes properly update or insert alert in views.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>