Preparing settings dialog