adding an action without a dom hook is an error