Display loading during ajax request and hide when done