recursive msg removal at gui level
remove unused code