scheduling notes, but it breaks when button is pressed twice