Passing app reference to constructor when creating app main callflow