main method for ShapeBrowser