fixes.
fixes to expand/collapse stuff.
Only show Set All Pages button when it is a page template