Fixed inline add button in tree

Added methods to create child after clicking on inline tree add button.