add hide/show method to Input