made more dynamic for different window sizes