toggle lightbulb refactor
changed frame adding behavior