refactoring color link panel