clear out the containing div before drawing matrix