Added AJAX calls to mark as complete and archive. Still needs to be tightened up.