reshuffle web app to use mobile code