clean code for thank view
fix message notification on logout