initial implementation of user pagination