adds edit and delete for posts