Updated the code for blogs view