add toggle methods for flash mode