adding a class to printrefs to sort layout