updated to get rid of error when not authenticated and looking at a page