Refactor tab method