refactor mobile site with multiple connection support