added function to update alarm and changed notify