improve flash button
add messageing to the frontend