A factory method that supports various modal components in function call. Support asynchronous collection and function call.