Added popup window to the calendar, rewrote the internal logic to change the number of weeks and the start date