added code to resolve bug for menu caret scicustomer (bug/menu item caret)

The test failed are the tests that are failing in the master itself