We can put this inside a initEvents method and called it from initialize method in views/blog.