implement data to view binding logic.