initialized buttons and implemented scheduler