Cleanup debug code in view