Use flashes instead of alert
Fix unit tests
Fix unit tests
Add rewrite rule