Implementing toggleable pagination. Pages still nonfunctional