Fix listener bug in form-selector

The text is not updated when a second form is selected in the old
version.