added the option to hide the text input for the ID