edited URLs and started cookies functionality