Fix for collapse boxes within ajax loaded content

This PR fixes the issue raised in #171