adding button to valid elements