added post delete functionality