factor out more styling elements into class methods