prototype for pagination and formatting time
some pagination functionality