Added possibility to specify min and max dates for calendar