prevent user from pressing done button before the request is done