change the arrow icon on click