preventing printing from the VIEW mode