before the done button