link ui and data