renamed generateCalendar into generateModel
deleted unnecessary code
updated range changing triggering