Updating tree size for mobile