Handle 'done' button click.