Logic and screen update