wired up next and previous page commands