writing the stage detail control