finish the page turning function, use amazon type