Removes unneeded code
Adds tableHandlers form subforms