Refactored PileView