added the ability for loadApp and loadCustomApp to pass data to apps