Commited changes in tree, added edit button and it's functionality