Functions reordering and change of component creation without new. Minor fixes in validation logic and isInEnabledDates function fix