disable clicking if no children