added destroy method to posts controller