simplify function to insert new form