File change in case of multiple files opened