add callback to load page