Cleaned up ResultsActivity code