Updated accordion to include new functionality