Added mouseup event "out of the browser window"
zIndex change on clicking on the content of the window