Added optional query params to view API