classes: fix class-modal heads. Also, little class title display trick
@sabrecat (tiny perf bonus)