Move download to documentcontroller