adding action class if action, forcing actions to appear before submenu widgets