X button functionality css and html