Added a method for a generic option dialog
Fixed field format issue for integers