adding data onload