seperate sourcecodes of the graph and control(ui) in files