Updated resize event handler

Added device orientation change support
Update check resize method