Added withdrawWindow