applying viewport changes to all pages