Add edit post functionality