Refactored the graph ui into its own project