making edit post work