Merging placeInTree and create file functionality
[frontend] More cleanup.