update WebDialog to load resources dynamically