Make dispatchToAction to allocate action to layout's node attribute