You need to implement a model and attach it to your view.