Made case_attributes show only if defined
Made case attributes show only when defined