Add menu and file with rule