adding delete post functionality