added AJAX for task completion and deletion