Added code to run preference dialog