refactor mobile view