now hides edit button on pages when not authenticated