add view api