close tree when button clicked on mobile