adding ability to specify a loading view