listen to ajax events for the display and hide of loading gif
reload when changing language