stats view with variables from controller