toggle search input when content window open/closes