added hook enable and disable to add event date formats