Stops opening multiple tabs for the same file

-checks if it exists, if it does then it selects that tab. Else it will
open a new one