change tab style and other functions