Remove unnecessary codes
Support a piine viewer