https://github.com/joelpurra/emulatetab