Adding edit post functionality