added API requests in views