refactoring done
Text mode tab added