add post and edit index