add view handler