add onclick listener method for list item to display the blog page