changing class list removing right-click