formatting results page