move menu delegate code to ClientMenuDelegate