amendments for tab loading order. few bugs fixed.