browser object diagra and object diagram window's relationship allowed
 already deleted pointer to be used for ->on_close
 I am not sure that what I did to fix this is corret. will need to review
 this commit when I am not as sleepy