change month when first or last day selected