cleaning up some dom events