added dynamic task creation and completion with AJAX