adds and implements data-loading gif on change between text