added an option to define the default form class