Changing input type to class