Framework for managing menu and toolbar actions