adds container event handlers