application refactor and initial background_page