It now decides whether to open in a new tab or not