Methods setData() and data() to make data available in nested views