Handle download events in the UI