Added ability to edit posts (using AJAX)