Add support for linking by attribute, and css class override