Complete UI 'new graph' logic