Add an apply button to the tool as well as the viewer.