button logic downloads