designing a compact form for case details with multiple inputs