Window and callback definitions added