try to detect ios done button