open window on click instead of ajax on success