implemented edit post feature