use z-index to hide text input