created a functional window