enapi class can update indicator's popup menu when api object connected or disconnected.
Fix small import problems and typo