fix the sidebar page reload issue