edit and show sidebar