targetingmethod fileio with ui implemented