S&P 500 tops 7,700 as Dow hits 54,000 record