add post and edit index page