Changed the form widget and handler to support params.