update post and delete method, change list_id to index