Fixed minor bug in removing dimensions and added the loadingDiv