Adds the form and the lines to it.