TreeActivity: fixed redraw, reworked lifecycle