add prepare judgement of the buttle screen