closes #14 - close dialog on button click