menu rendering & pyflakes fix