Adding cookie security on data viewer
Refactored admin cookie
Refactored util class