restored `addActionButton` method back to its original state.