added hiding of sidebar