major refactoring of classes
replaced overlay with panel
cleanup dialog mask