add destroy function on posts