Hide stacks navigation if only one stack

Also make formatting a bit tidier.