add stats view in api