Added saving feature with AJAX