added cookie to maintain sidebar status accross pages