setting gridOpt cookie in less places