Made sure only visible items have actions on in JSON conversion