fixed compatibility issues, redesigned preference dialog