add functionality to datetime buttons