improved gui param validation and error dialog