created main function Sidebar(); added isWrapped()