Update UI.js

add code to check currDoc Save status on loading already saved document.