Always close panel before open any other download UI
Move code around download actions into separate file
(#24)
Remove cycle reference to simplify garbage collection
(#24)