Added clear function to windows