added browser check, fix window size