- make raiseUpdate and updateVisibleActions be called only once during macrotask - rafactor visibleIndex behavior