adds css-classes to popup elements
shortens abstract in popup