clear array on refresh