add instance key to css classes