Refactor import into page and import process