Recator link ui code