Added the feature of entering a viewer mode