Adding editor input and some listeners