check view name with ajax