Added ajax for the alarm toggle switch