update controls and panels