Change Url for blog post listing view.
Refactor views using functions in lib file.