Feature/support switch css id class

redo pull request after accidentally deleting branch of the original #6149