remove element after click