change sidebar match container to be more flexable