spa.page init and UI stuff