moving element to class