Make the param dialog box work

fixes #18
fixes #5