add edit post functionality