add a callback to allow for initialization after data has been loaded
Merge branch 'add_data_loaded_callback' into pg2