adding new post and changing index