added stats and action loading via ajax and json