moved resize code, removed old tab code