now the flash message disappears once you click to another page