finally got form to work