adds dowload data functionality