panel and state updates