Use handleClick() rather than mouseReleaseEvent() for handling URL clicks