Refactored inputGroup as element