added support for passing an id to add as a CSS selector