making css selectors specific, and fixing the teardown event