adding logic to show icon-caret-down/up for forms group