add a method to create named form