fix buttons action on tree