By default, on the homepage view, every category and sub-category is listed and that can look a bit messy when have lot of categories and subcategories. Here is how you can only show main categoris on hompage, and only unfold ubcategories when a category is clicked in the menu.
Open home.tpl for the template you want to change.
Look of the code below:
{if $subcategories}
{foreach from=$subcategories item=curr_sub_cat}
{if $curr_sub_cat.level<$levels && $curr_sub_cat.name}
{/if}
{/foreach}
{/if}
and change it to
{if $subcategories}
{foreach from=$subcategories item=curr_sub_cat}
{if $curr_sub_cat.level == '1' && $curr_sub_cat.name}
{/if}
{/foreach}
{/if}
Then of course save the changes and reupload the file if you edited offline and not directly on ftp.
If you look carfully, you will see that only one line was changed, [COLOR="Red"]{if $curr_sub_cat.level<$levels && $curr_sub_cat.name}[/COLOR] with [COLOR="RoyalBlue"]{if $curr_sub_cat.level == '1' && $curr_sub_cat.name}[/COLOR] but that is all to do the trick.