Changed logic of showing cookies. Have fixed some bugs in topic/show