Opening a new file window is minimally working