correct on click event listener for 'a'