Issue #5978 done. Added top-preffered class to try display on top. Added click_out class for windows which closes on click outsude of .modal_window