merged: reset probably buggy, nextPage, prevPage buggy, otherwise working properly