Added loadPage and resetInput