added loading img as well as modal box