changing calendar to flexbox