added a class and selected on it