add ability to save next url in a cookie