Cookies implementet + little  Bugfixing