Added sidebar condition for pages