Reading the cookie to determine what template to show and where