Simplify Presentation Mode code