Selects files on clicking instead of downloading them.

Need further code adjustments.