Added basic view api - loads after page load
commented out view api stuff for now