Use data binding to remove for loops