added search icon and toggle function