implemented Generic GUI handling.