code now switches between files in ace