adding api information to view