added class flag functionality to /explore route