adding new post functionality
adding edit post functionality