started edit post function