updated to auto enable appmenu