removed unnecessary code
loading gif