using this instead of event.target so navigation works in firefox