Adding support for loading/loaded events when using remote data on the Modal