added basic download functionality to app