cleans and wires up forms