Changed to handle resizes of the windows

Changed to handle resizes of the windows in menu in mobile-verision.
#332