fix bug on changing teachers and support for unfinished voting

1. fix bug on changing teachers
2. be able to revote the unfinished voting poll.