Modernize and clean this code

Printable View