leave and delete work in poll detail controller