public void clearCommands(){
synchronized (commands) {
    commands.clear();
  }
  updateImages();
}

public void clearCommands ( ) { synchronized ( commands ) { commands . clear ( ) ; } updateImages ( ) ; }
clear all commands off the current page
