implemented MenuItem and Toolbar commands