Added a few tweaks

ask if you want to lose unsaved change when closing window
added fallback images
focus on new tab