Make UndoBar extendable.

It would be ver useful if other devs could extend this class and made some changes to it to extend the functionality or just to adjust it to their needs.