moved show all button to below and edited how results are passed