main framework for results page