working edit post feature