add monitor class
add monitor class and disconnect function