Creating the folders as soon as the corresponding tab is active.