I tried to move the "x" to the template too and style it with just CSS, but I couldn't do it, so I might have missed this when going back. But it does make sense to use this and remove the data from the "x" element, so I did that, and it still works.