Allow easier subclassing of the pieces dispatch

You had defined ```self.beforeShow``` funciton but it was never called.