added cookies for passing jsondata between pages