Changing the public interface of StagePanel and giving it its own file.