showing files in tree and adding a clicking event for them.