Fix component add/change and delete dialogs

They get called from the directive from the button press event handlers.