make sidebar reusable