added listener for analyze in workspace