SessionManager messes up window when static. Made it non-static.