Parametrize panel creation