For consistency switch to creating the form like the page builder functions do and example is on JazzeePage::titleWorkspace().  This will take care of styling as well.