Moves the warning popup to its own function