moved search code around + apply multiple styles to text