added ability to edit and delete posts