adds classes and ids