add funcitons for show hide sources