add styles to result state