Attempted to fix refreshing of alarm, not working