creating a stats view that can be placed anywher