added ajax body class support for tag template on index and improved pagination class function