fixed addClass bug by adding $