fix bugs
add style to flash messages
fix