Implemented the downloadmanager