editor.php adding polls finished, fixing createPoll