remove debugging code from view