popup closebutton and close on esc removed for ruler and wmsloader