frontend success logout handler