dropdown menu fix to allow child attr to be stored in variable for page display