added code that makes search box smaller when user types in search box