cleaned up mdi subclass proc some