completed ajax enabled auto refresh functionality