add wait for app to be initialized to prevent referer not set
wait for app to be initialized to prevent empty referer