replaced post with put + assumption id
replaced post with AJAX + assumption id