Auto expand parent and select new child when creating

When creating new elements they must be visible and selected right away

(from redmine: issue id 405, created on 2018-01-22tgradl, closed on 2018-01-22)