Making windows work with each other