Adding close buttons to windows