Added preprocess function for ting object to add wrapper divs