init can get screen size