Replaced endPanel with endTab