implementing sources dialog