Added ability to set cookies before navigate