Added labels support for printing timesheets.
Fixed bugs handling tree events.