code clean up for ResultFragment