simplified and optimized

by deleting some unused methods and combining them;
by adding options to clickToDownload and clickToRefresh image.