add show/hide sidebar button (closes #4339)