add flash error message to version page