add the loading view and loading mask