added arrow on click events and tests