updating graphics & layout