implemented done button