added support for sidebar on 'pages'

added support for sidebar on 'pages'