done button checking