add view with debug