Added toggling flash and changed buttons