applying setTimeout to make sure only last execution will cause synch of calendar