updated sidebar logic to allow widgets on regular pages