refactoring + get rid of FF's pop-up tabs at start