Make DRY and fix print page