fix npe

fix npe while loading exams
group menus by day

fix creation of tabs