fixed the toggleArrow on load issue