added mobile viewport compatibility