some basic work to the calendar logic
forgot to add the custom layout/css