Added support for Closures as Commands for menu items