added loading gif
fixed crazy table bug