Added the blog controller functions