Changed to opening a tab instead of a new window