Added listeners for screen resolution change