implement delete funtionality for posts