added window wanking for alarm.html