updated tabs to show content only if its clicked