ive fixed the error with the index page, now you can viewall posts from the index page