add tests and change flash html