add view & api