added toggleLightBulb function
added previousFrame method
added previous frame button
refactored addCurrentFrame method