Added details text to rects, also added class names to text now so we can deal with them separately