fix case for old data types, and set button visible state instead of enable state (like Jira)