Fix middle page not loading, add page resume