Basic window structure taken from https://github.com/TheRusskiy/ExpertSystem