fix the calendar nav pagination by using normal functions