elemnts get removed when x is clicked