page and per page work through sinatra interface