added 2 more hooks for when the input field is hidden/shown