programmatically display loading.html