improved the sidebar effect