add show/hide flag for input