Attempt at making download popup work