Fixed it so that all opened files open in the same window.