add 'ok' button to pref panel; fix scaling when window is larger than the vnc resolution