Clears the whole page then writes the complete arrary to the page.