Refactor table print view