bugfix: #1 adapt component for form integration

Proposition of implementation. Accepted?