disable analysis button when start analyzing and clear shape on cancel