updated id and class name methods