Adding accordion functionality to index