implement PositionBox widget