New way to handle flash element
New build
Last part of unit test for flash system under state.js