wired up logic for calendar page. now fully functional.