Rewrote UI handler, separated scientist stuff from other