add stats view and template