add logging support
add flash scope sample for success message