added min/max date button disabling