changed the system to instead of using span .wait to use just the img tag with a class called loading