get persistence working between settings and main screen