implemented auto enable/disable of end_date