Add parent values in where section and fix display errors in insert form