you should add it to the DOM only at the end