UserDevice and Alarm - partialy rewrited from knockout to angularjs