refactor some code
fix mobile overflow scroll issue