halfway through converting to a single-page app