added loading.gif serverside because it is faster