update modal windows to use vaadin 7 way of getting browser window size