impruved dialog logic, added icons for menu categories