persist the collapsed state and refresh interval