GUI update

- logic for checkboxes

- small update in simulation algorithm