add results popup function