Fixing bug in epo cookie when navigate to and from the main page.