Add base and resize event handling.