modification to open a new window on request