added download functionality in the app