update posts/index view
fix package namespace
move url param out of class constructor