adding stat view and graphs