creating search input directive