Added "Preferences" window and added event handler for the "Preferences menu item onClick".
Now I are done.