What is the best way to implement an apply button? I would like to be able to chose to run the add-in and keep the dialog open or run it and close the dialog. Thanks.