Added a way to manage the posts in different pages