Small refactor for updating panel information