added editing and deleting fuctionality for posts