added new option "newWindow" for opening a new window if the user will be forwarded