Remove debug code from view.