clears divs before inserting them to fix div repeat bug