Updated function for creating calendar body