moved style changes to a new class