Improved confirmation alert,...

Improved confirmation alert, fixed preference loading, don’t show
confirmation alert if doing nothing, code cleanup.