Added view and api connect calls