Create new update method and use in AJAX