create functionality for set done button