download button, global variables
resolve conflict