Simplify presentation mode code