logout handler added