Bugfix caste the uuid back to binary.
Optimize the popup templates.