finished simple results page logic