Adding logout template and handler