added basic download control functionally in angular