update data onload

use setLoadActions instead of .onLoad