moved search into map template