Fix collapse/expand issue

Fix for collapse not working in Index template