added the form

added the form to the  dynamic select.
also changed some other functionality