* added a timer to stop the alarm playing