Better stuling of associations boxes, fix to javascript bug