menu module changed, dialog module added, some debug fixed