changed function calls for mobile to fit with paginations for website