fixed iOS displaying bug, added viewport