changed timer function for scheduled notifications