add flash and scroll functionality