Builds the accordion