Made interaction between the windows