removes mongo test code from view