added button for legend-modal; modified legend-modal
added statistics box on modal; reconfigured modal to support multiple display boxes; modified legend-box