Make panel fit for multiple types