Add edit and delete posts functionality