Change titleCase to convert underscores to spaces
simplify pending states