t76 - refactoring function and css