added destroy method to posts