logout and visual effect