when main layout resume, refresh layout,