Converted approval/rejection to ajax