Add support to restore last page. Fix style.