Use Component and Loader to create the Dialog