add function to get viewport size