added some logic and WebSocket functionality around the alarm modal, checkbox and label