move stuff into ModelBase base class
fix CSS link thing in test