update add loading gif and replace delete and put with POST