buttons made valid