initial changes required for animating a panel