added frame-id and javascript to toggle visibility