Added popup flipper code