popup function deleted