Results view working correctly, not too happy about the way it's written so might look into changing this