adjusting posts index and buttons