Update button when selecting dates