refactored results page