Clean up for search and stats pages