view orders now updates database with status