add e.preventDefault() to stop tabs from opening a new window