Updated css output style
Added check on calendar items