Added 'add function button' to the right of function editor.
Fixed bug of editor not being always focused when a scene is clicked