page handle based on cookie