fix JS pagination error on mobile
template refatcoring and small styling changes
mobile template refactoring