generate time buttons programatically. probably a mistake